{extend name="public/base" /} {block name="css"}
<link rel="stylesheet" href="__INDEX__/css/add_clothes.css"> 
{/block}
{block name="container"}

<div class="panel-body panel-body-nopadding" style="padding-bottom:50px;">
    <div class="inforMain">
        <div class="title">行政库存编码录入</div>
        <span>*请用扫码枪扫成衣对应的条形码*</span>
        <input type="text" id="maBoxs">
    </div>
</div>
{/block} 
{block name="js"}
<script>
    $('#maBoxs').keydown(function(e){
        if(e.keyCode == '13' &&　e.target.value != ''){
            window.location.href = 'https://www.baidu.com';
        }  
    })
</script>

 {/block}